import { Application } from "egg";

export default (app: Application) => {
  const { controller, router } = app;
  router.get("/api/ysy/access-token", controller.ysy.accessToken);
  router.get("/api/ysy/device-list", controller.ysy.deviceList);
  router.get("/api/ysy/camera-list", controller.ysy.cameraList);
  router.get("/api/ysy/constrol-start", controller.ysy.startCameraControl);
  router.get("/api/ysy/constrol-stop", controller.ysy.stopCameraControl);
};
